<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改分类信息</title>
<link href="html/css/css.css" rel="stylesheet" type="text/css" />
<script Language="JavaScript" src="html/js/functions.js"></script>
<script language="javascript">
//提交验证
function check_category_submit()
{

		if($('CategoryName').value =='')
		{
			msg_box('您还没有填写分类名称哦!');
			$('CategoryName').focus();
			return false;
		}

		$('submit').disabled = true;
		$('submit').src = 'html/images/ajax.gif';
		return true;
}
function check_tpl()
{
	return true;
}
</script>
</head>
<if $Msg>
<div id="msg"><img src="html/images/information.gif" width="16" height="16" align="absmiddle" /> [$Msg]</div>
</if>
<body style="height:auto;overflow-x:hidden">

<form action="" method="post" enctype="multipart/form-data" name="form" id="form" style="margin:0px" onsubmit="return check_category_submit();">
<input name="CategoryID" type="hidden" value="[$CategoryInfo.CategoryID]"  />
<div class="form_box">
	<div class="header">
    <img src="html/images/folder.gif" width="16" height="16" align="absmiddle" />&nbsp;修改分类信息</div>
  <div class="box">
    	<div class="text">
    	分类名:
    	</div>
        <div class="input" style="padding-left:10px;">
    		<input name="CategoryName" type="text" id="CategoryName" value="[@htmlspecialchars($CategoryInfo.CategoryName)]" />
       	</div>
        <div style="clear:both"></div>
    </div>
    
    <!--
      <div class="box">
    	<div class="text">
    	目录生成格式:
    	</div>
        <div class="input" style="padding-left:10px;">
    		<input name="Dir" type="text" id="Dir" onkeyup="value=value.replace(/[\W]/g,'') "onbeforepaste="clipboardData.setData('dir',clipboardData.getData('Dir').replace(/[^\d]/g,''))" value="[@htmlspecialchars($CategoryInfo.Dir)]" />
            <br><img src="html/images/information.gif" width="16" height="16" align="absmiddle" /> 变量：{<a href="JavaScript:;" onclick="$('dir').value=$('Dir').value=$('Dir').value + '{CategoryID}'">CategoryID</a>}，{<a href="JavaScript:;"  onclick="$('Dir').value=$('Dir').value + '{PinYin}'">PinYin</a>} </div>
        <div style="clear:both"></div>
    </div>
    -->
    
	 <div class="box">
    	<div class="text">
    	上级分类:
    	</div>
        <div class="input" style="padding-left:10px;">
    		<select name="ParentID" id="ParentID">
            <option value="0">顶级分类</option>
            [$CategoryForSelect]
          </select> 
       	</div>
        <div style="clear:both"></div>
    </div>

        <div class="box">
    	<div class="text">
    	转向:
    	</div>
        <div class="input" style="padding-left:10px;">
<input name="URL" type="text" id="URL" value="[@htmlspecialchars($CategoryInfo.URL)]" />
<br><img src="html/images/information.gif" width="16" height="16" align="absmiddle" /> 当该项填写时，优先转到该地址
       	</div>
        <div style="clear:both"></div>
    </div>
    
   <div class="box">
    	<div class="text">
    	自定义标识:
    	</div>
        <div class="input" style="padding-left:10px;">
    		<input name="Mark" type="text" id="Mark" value="[@htmlspecialchars($CategoryInfo.Mark)]" />
            <br><img src="html/images/information.gif" width="16" height="16" align="absmiddle" /> 用来辅助标识分类，方便特殊调用
       	</div>
        <div style="clear:both"></div>
    </div>
    
    
    <div class="box">
    	<div class="text">
    	排序:
    	</div>
        <div class="input" style="padding-left:10px;">
    		<input name="Top" type="text" id="Top" value="[@htmlspecialchars($CategoryInfo.Top)]" />
            <br><img src="html/images/information.gif" width="16" height="16" align="absmiddle" /> 数字越大越靠前
       	</div>
        <div style="clear:both"></div>
    </div>
    
  <div class="box">
    	<div class="text">
    	列表模板:
    	</div>
        <div class="input" style="padding-left:10px;">
    		<input name="ListTpl" type="text" id="ListTpl" value="[@htmlspecialchars($CategoryInfo.ListTpl)]" />
       	</div>
        <div style="clear:both"></div>
  </div>
  
  <div class="box">
    	<div class="text">
    	内容模板:
    	</div>
        <div class="input" style="padding-left:10px;">
    		<input name="ContentTpl" type="text" id="CategoryName" value="[@htmlspecialchars($CategoryInfo.ContentTpl)]" />
       	</div>
        <div style="clear:both"></div>
  </div>
  
      <div class="box">
    	<div class="text">
    	分类关键字:
    	</div>
        <div class="input" style="padding-left:10px;">
    		<textarea name="Keywords" style="height:100px;">[@htmlspecialchars($CategoryInfo.Keywords)]</textarea>
       	</div>
        <div style="clear:both"></div>
    </div>
    
      <div class="box">
    	<div class="text">
    	分类描述:
    	</div>
        <div class="input" style="padding-left:10px;">
    		<textarea name="Description" style="height:100px;">[@htmlspecialchars($CategoryInfo.Description)]</textarea>
       	</div>
        <div style="clear:both"></div>
    </div>
    
    </div>
</div>
<div class="form_box_bottom">
<input type="image" src="html/images/submit.gif" align="absmiddle" border="0" title="保存" id="submit" /></a>
<a href="javascript:history.go(-1);"><img src="html/images/msg_cancel.gif" align="absmiddle" border="0" title="返回" /></a>

</div>
</form>
</body>
</html>
